<?php

	#doc
	#	classname:	Menu
	#	scope:		PUBLIC
	#
	#/doc
	
	class Menu extends CWidget
	{
		#	internal variables
		public $controllerName;	
		#	Constructor
		public function run()
		{
		
		$item = array();
		for ( $i=0; $i < 7; $i++ )
		{ 
			$item[$i]="";
		}
		
			switch ( $this->controllerName )
			{
				case 'news':
				{
					$item[1]="active";
				}
				break;
				case 'post':
				{
					$item[2]="active";
				}
				break;
				case 'cv':
				{
					$item[3]="active";
				}
				break;
				case 'vacancy':
				{
					$item[4]="active";
				}
				break;
				case 'information':
				{
					$item[5]="active";
				}
				break;
				
						
				default:
					$item[0]="active";
				break;
			}
			
			$this->render('menu',array('item'=>$item));
		}
		###	
	
	}
	###

?>